package io.renren.modules.basedata.entity;
/**
 * 自定义异常类
 * @author zly
 *
 */
@SuppressWarnings("serial")
public class XJException extends Exception{
	/**
	 * 消息类型
	 */
	private int msgtype;
	/**
	 * 版本号
	 */
	private String version;
	/**
	 * 异常原因
	 */
	private String reason;
	/**
	 * 处理标识
	 * 0、正常；1、IO异常;3、其他异常；4、校验异常；5、人工确认可处理；6、异常处理成功；7sql异常;其他填写api代码
	 */
	private int flag;
	
	public XJException(int msgtype, String version, String reason, int flag) {
		super();
		this.msgtype = msgtype;
		this.version = version;
		this.reason = reason;
		this.flag = flag;
	}
	public int getMsgtype() {
		return msgtype;
	}
	public void setMsgtype(int msgtype) {
		this.msgtype = msgtype;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	
}
